import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询竞猜活动列表
export function guessList(params) {
    return request({
        url: `/guess/activity/list`,
        method: 'get',
        params
    })
}

//新增竞猜活动
export function addGuess(data) {
    return request({
      url: '/guess/activity',
      method: 'post',
      data
    })
}
//修改竞猜活动
export function editGuess(data) {
    return request({
      url: '/guess/activity',
      method: 'put',
      data
    })
}
//获取竞猜活动信息
export function guessDetail(id) {
    return request({
        url: `/guess/activity/${id}`,
        method: 'get',
    })
}
//启用-停用竞猜活动链接
export function statusGuess(data) {
    return request({
      url: '/guess/activity/url/status',
      method: 'put',
      data
    })
}





